<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            border: 0;
        }
        .bigbox {
            width: 500px;
            height: 500px;
            background-color: aqua;
            /* border: 1px solid #000; */
            position: relative;
            /* 3d动画 */
            /* transform-style: preserve-3d;
            transform: rotateX(20deg) rotateY(20deg); */
        }

        .box {
            width: 500px;
            height: 500px;
            border-radius: 50%;
            margin: 100px auto;
            position: relative;
            background: linear-gradient();
            border-right: 250px solid #000;
            border-left: 250px solid #FFF;
            background-color:#000;
            box-sizing: border-box;
            transition-timing-function: ease-in;
            transition-duration: 3s;
    
        }
        .box:hover{
            transform: rotate(1080deg);
        }

        .box::before {
            position: absolute;
            top: 250px;
            left: -70px;
            content: "";
            display: block;
            width: 250px;
            height: 250px;
            background-color: #000;
            /* border: 125px solid rgb(242, 235, 235); */
            margin-left: -50px;
            border-radius: 50%;
            box-sizing: border-box;
        }

        .box::after {
            position: absolute;
            left: -70px;
            top: 0px;
            content: "";
            display: block;
            width: 250px;
            height: 250px;
            background-color:#FFF;
            /* border: 80px solid rgb(46, 45, 45); */
            margin-left: -50px;
            border-radius: 50%;
            box-sizing: border-box;
        }

        .box2 {

            z-index: 1;
            width: 80px;
            height: 80px;
            left: -50px;
            top: 85px;
            border-radius: 50%;
            position: absolute;
            background-color: rgb(17, 15, 15);

        }

        .box3{

            z-index: 1;
            width: 80px;
            height: 80px;
            left: -30px;
        bottom: 85px;
            border-radius: 50%;
            position: absolute;
            background-color: #FFF;

        }
    </style>
</head>

<body>
    <div class="bigbox">
        <div class="box">

            <div class="box2"></div>
            <div class="box3"></div>
        </div>

    </div>
</body>

</html>